package com.yzyz.web.controller.visitor.ppt;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

import org.springframework.web.servlet.ModelAndView;
import org.springframework.web.servlet.mvc.AbstractController;

import com.yzyz.bean.route.RouteBean;
import com.yzyz.data.CacheFactory;

/**
 * 从页面PPT跳转到浏览行程信息的页面
 * @author David Sun
 * @Date   2010-4-21
 *
 */
public class PPTViewRouteController extends AbstractController {

	@Override
	protected ModelAndView handleRequestInternal(HttpServletRequest request,
			HttpServletResponse response) throws Exception {
		RouteBean route = CacheFactory.getRouteGroupStore().getRoute(Integer.valueOf(request.getParameter("routeId")));
		request.getRequestDispatcher("/routeInfo.htm?method=getRoute&routeGroupId=" + route.getRouteGroupId()).forward(request, response);
		return null;
	}

}
